<?php

// Export the layout to XML

if(isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER ['HTTP_X_REQUESTED_WITH']  == 'XMLHttpRequest') {
	require('../../../../wp-config.php');
	auth_redirect();
	
	canvas_export($_POST['layout_author'], $_POST['layout_title'], $_POST['layout_uri']);
}
?>